<% admin_breadcrumb(link_to Spree.t(:stock), spree.admin_stock_items_path) %>
<% admin_breadcrumb(link_to plural_resource_name(Spree::StockTransfer), spree.admin_stock_transfers_path) %>
<% admin_breadcrumb(Spree.t(:new_stock_transfer)) %>


<% content_for :page_actions do %>
<% end %>

<%= form_for [:admin, @stock_transfer] do |f| %>
  <fieldset class="no-border-top">
    <%= f.field_container :source_location do %>
      <%= f.label :source_location_id %>
      <%= f.select :source_location_id, options_from_collection_for_select(@source_stock_locations, :id, :name), {include_blank: true}, {class: 'select2 fullwidth', "data-placeholder" => Spree.t(:select_a_stock_location)} %>
      <%= f.error_message_on :source_location %>
    <% end %>
    <%= f.field_container :description do %>
      <%= f.label :description %>
      <%= f.text_field :description, maxlength: 255, size: 0, class: 'fullwidth' %>
      <%= f.error_message_on :description %>
    <% end %>
    <div class="filter-actions actions" data-hook="buttons">
      <%= button Spree.t(:continue) %>
      <%= link_to Spree.t('actions.cancel'), admin_stock_transfers_path, class: 'button' %>
    </div>
  </fieldset>
<% end %>
